package com.innovations.inn.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.innovations.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 科研成果操作记录对象 operate_record
 * 
 * @author dp
 * @date 2024-08-09
 */
@Data
public class OperateRecord
{
    private static final long serialVersionUID = 1L;

    /** 操作记录标识 */
    private Long operateRecordId;

    /** 操作类型;1：科研成果；2：商业需求； */
    @Excel(name = "操作类型;1：科研成果；2：商业需求；")
    private Long operateType;

    /** 科研成功/商业需求标识 */
    @Excel(name = "科研成功/商业需求标识")
    private Long operateId;

    /** 操作描述 */
    @Excel(name = "操作描述")
    private String operateDesc;

    /** 操作人 */
    @Excel(name = "操作人")
    private Long operateBy;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("operateRecordId", getOperateRecordId())
            .append("operateType", getOperateType())
            .append("operateId", getOperateId())
            .append("operateDesc", getOperateDesc())
            .append("operateBy", getOperateBy())
            .append("operateTime", getOperateTime())
            .toString();
    }
}
